package com.qys.livesMall.shop.modal.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 商品评论表
 * </p>
 *
 * @author gmx
 * @since 2023-06-30
 */
@Data
@TableName("h2_shop_order_comment")
@Schema(name = "ShopOrderComment", description = "商品评论表")
public class ShopOrderComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "评论ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    @Schema(description = "1:普通评论2:商家评论")
    private String type;

    @Schema(description = "商铺ID")
    private String shopId;
    @Schema(description = "商品ID")
    private String goodsId;
    @Schema(description = "商品名字")
    private String goodsName;
    @Schema(description = "sku名字")
    private String skuName;
    @Schema(description = "订单OrderSkuID")
    private String orderId;

    @Schema(description = "用户ID")
    private String userId;

    @Schema(description = "用户名")
    private String userName;

    @Schema(description = "用户头像")
    private String userAvatar;

    @Schema(description = "评论内容")
    private String content;
    @Schema(description = "评价图片")
    private String images;
    @Schema(description = "评分1好评2差评")
    private String rating;

    @Schema(description = "父级评论ID,顶级为0")
    private String parentId;

    @Schema(description = "创建时间")
    private Long createdTime;

    @Schema(description = "更新时间")
    private Long updatedTime;

    @TableField(value="i_enable")
    @Schema(description = "是否隐藏：1不隐藏2隐藏")
    private String enable;
    @Schema(description = "删除")
    private Boolean deleted;

    @Schema(description = "商品体验分数")
    private BigDecimal productScore;

    @Schema(description = "物流体验分数")
    private BigDecimal logisticsScore;

    @Schema(description = "售后服务分数")
    private BigDecimal afterSaleScore;

    @Schema(description = "咨询体验分数")
    private BigDecimal consultScore;

    @Schema(description = "点赞数量")
    private Integer likeNum;
}
